package TAIC.test;

public class Text_K_Base_TestMode extends TestMode {

	public int loop1Begin () {
		return para.getParaInt( "K_Begin" ) ; 
	}
	
	public int loop1End () {
		return para.getParaInt( "K_END" ) ; 		
	}
	
	public int loop1Step () {
		return para.getParaInt( "K_Step") ;
	}
		
	public int loop2Begin () {
		return para.getParaInt( "BaseImage_Begin" ) ;
	}
	
	public int loop2End () {
		return para.getParaInt( "BaseImage_End" ) ; 		
	}
	
	public int loop2Step () {
		return 1; 
	}

	public TestResult test ( DataGen dataGen , int K , int BaseImage ) {
		double lambda = para.getParaInt( "Lambda" ) ;
		//if ( BaseImage == 0 ) lambda = 20 ; 
		return dataGen.test( K , BaseImage , para.getParaInt( "Key" ) , 
				para.getParaInt( "TestImage"), para.getParaInt( "Iteration" ) ,
				Math.pow(2.0, lambda ) , "" ) ;
	}


}
